package com.probox.activity.api.domain;

import com.probox.common.core.annotation.Excel;
import com.probox.common.core.enums.PrizeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author hds
 */
@Data
@ApiModel(description="奖品对象")
public class LotteryDetailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long detailUid;
    /** 抽奖活动UID */
    @Excel(name = "抽奖活动UID")
    @ApiModelProperty(value = "抽奖活动UID(抽奖活动UID)")
    private Long prizeUid;

    /** 奖品类型(gift赠品/score积分/coupon优惠券/thanks谢谢惠顾) */
    @Excel(name = "奖品类型(gift赠品/score积分/coupon优惠券/thanks谢谢惠顾)")
    @ApiModelProperty(value = "奖品类型(gift赠品/score积分/coupon优惠券/thanks谢谢惠顾) ")
    private String prizeType;

    /** 奖品名字 */
    @Excel(name = "奖品名字")
    @ApiModelProperty(value = "奖品名字(奖品名字)")
    private String prizeName;

    /** 奖品数量 */
    @Excel(name = "奖品数量")
    @ApiModelProperty(value = "奖品数量(奖品数量)")
    private Long prizeAmount;

    /** 奖品图标 */
    @Excel(name = "奖品图标")
    @ApiModelProperty(value = "奖品图标(奖品图标)")
    private String prizeUrl;

    /** 奖品创建人 */
    @Excel(name = "奖品创建人")
    @ApiModelProperty(value = "奖品创建人(奖品创建人)")
    private Long prizeCreateuser;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    @ApiModelProperty(value = "创建人名称(创建人名称)")
    private String prizeCreatename;

    /** 中奖概率 */
    @Excel(name = "中奖概率")
    @ApiModelProperty(value = "中奖概率(中奖概率)")
    private Integer prizeProbability;

    /** 奖品库存 */
    @Excel(name = "奖品库存")
    @ApiModelProperty(value = "奖品库存(奖品库存)")
    private Integer prizeNumber;

    /** $column.columnComment */
    @Excel(name = "奖品对象ID")
    @ApiModelProperty(value = "奖品对象ID")
    private Integer objUid;

    /** 已中奖数量 */
    @Excel(name = "已中奖数量")
    @ApiModelProperty(value = "已中奖数量(已中奖数量)")
    private Integer lotteryNumber;

    /** 提示语 */
    @Excel(name = "提示语")
    @ApiModelProperty(value = "提示语(提示语)")
    private String remark;

    /** 数据状态 0无效1有效-1删除 */
    @Excel(name = "数据状态 0无效1有效-1删除")
    @ApiModelProperty(value = "数据状态 0无效1有效-1删除(数据状态 0无效1有效-1删除)")
    private String dataStatus;

    /**
     * 积分数
     */
    private Long score;

    public String getPrizeTypeStr(){
        return PrizeTypeEnum.getNameByKey(prizeType);
    }

}
